using System;
using System.Collections.Generic;
using System.Text;
using Impact.Infrastructure.Configuration;

namespace Impact.UnitTests.Mocks
{
    public class MockConfig : IConfigProvider
    {
        #region IConfigProvider Members

        public ImpactSettings Settings
        {
            get
            {
                if (settings == null)
                {
                    settings = NewSettings();
                }
                return settings;
            }
            set
            {
                settings = value;
            }
        }

        private ImpactSettings settings;

        /// <summary>
        /// write default values for test
        /// </summary>
        private ImpactSettings NewSettings()
        {
            ImpactSettings settings = new ImpactSettings();
            settings.ArticleFolder = "test";
            settings.DefaultPage = "two";

            return settings;
        }

        #endregion
    }
}
